-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Remove unnecessary join when filtering on relationship id #3922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6042c1e
to
12cfabd
Compare
// is the attribute of Collection type? | ||
boolean isPluralAttribute = model instanceof PluralAttribute; | ||
|
||
if (propertyPathModel == null && isPluralAttribute) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
propertyPathModel being null is no longer issue in hibernate
Thanks a lot. Does this optimization also work for composite id's and/or parts of a composite identifier? |
Closes spring-projects#3349 Signed-off-by: Jakub Soltys <[email protected]>
It should. I've added some more tests. Unfortunately
Test also fails without my changes to query utils |
Looks like a Hibernate issue. The query is:
Exception (it's a masked
I've reproduced the issue just using Also, noteworthy, when introducing |
Closes #3349